.patient-circle {
  /* padding: 16px; */
  background-color: #f5f5f5;
  min-height: 90vh;
}

/* 科室tabs样式 */
.department-tabs {
  background-color: white;
  margin: 50px 0 0 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 96vw;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

/* tabs样式 */
.customHeader {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--adm-color-border);

  .tabs {
    flex: 1;

    :global(.adm-tabs-header) {
      border-bottom-width: 0;
    }
  }

  .moreIcon {
    font-size: var(--adm-font-size-9);
    margin: 0 12px;
    transform: translateY(-2px);
  }
}

/* 病友圈帖子列表样式 */
.posts-list {
  width: 96vw;
  margin: 10px 0 0 0;
}

/* 虚拟列表项中的卡片需要与 itemHeight 对齐，这里设置最小高度并限制文本行数，避免超高 */
.virtual-list .post-item {
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.post-item {
  position: relative;
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 悬赏徽标 */
.reward-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 193, 7, 0.12);
  border-radius: 16px;
  padding: 4px 8px;
}

.reward-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.reward-value {
  color: #ff9800;
  font-weight: 600;
  font-size: 14px;
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.post-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex: 1;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-time {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.post-body {
  margin-bottom: 12px;
}

.post-detail {
  margin: 10px 0 0 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* 和 itemHeight 配合，避免内容过长引起超高 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.post-collection,
.post-comment {
  font-size: 12px;
  color: #999;
}

/* 内容区域样式 */

/* 固定tabs宽度，隐藏超出部分 */
.department-tabs .adm-tabs-header {
  width: 100%;
  overflow: hidden;
}

.department-tabs .adm-tabs-tab-list {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
}

.department-tabs .adm-tabs-tab {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .patient-circle {
    padding: 12px;
  }

  .post-item {
    padding: 12px;
  }

  .post-title {
    font-size: 15px;
  }

  .post-detail {
    font-size: 13px;
  }
}